﻿Ext.define('TAB.view.option.OptionNewOrEditForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.OptionNewOrEditForm',
    defaults: {
        xtype: 'textfield',
        labelWidth: 60,
        labelAlign: 'right',
        anchor: '95%'
    },
    bodyStyle: 'padding:5px 0px 5px 0px',
    items: [{
        xtype: 'hidden',
        name: 'FID'
    }, {
        xtype: 'hidden',
        name: 'FOPTIONTYPEID'
    }, {
        name: 'TypeName',
        fieldLabel: '选项类别',
        disabled: true
    }, {
        name: 'FNAME',
        fieldLabel: '名称',
        allowBlank: false,
        blankText: '名称不能为空'
    }, {
        name: 'FSORT',
        fieldLabel: '排序',
        xtype: 'numberfield',
        minValue: 1,
        emptyText: '不填则会智能生成'
    }, {
        xtype: 'textarea',
        name: 'FREMARK',
        fieldLabel: '备注'
    }],

    initComponent: function () {
        this.callParent(arguments);
    }
});
